package cn.yy.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.yy.dao.UserInfoRepository;
import cn.yy.pojo.UserInfo;
import cn.yy.service.UserInfoService;

@Service("UserInfoService")
public class UserInfoServiceImpl implements UserInfoService {

	@Resource
	private UserInfoRepository repository;
	
	@Transactional(readOnly=true)
	@Override
	public UserInfo findByUsername(String username) {
		// TODO Auto-generated method stub
		System.out.println("UserInfoServiceImpl.findByUsername()");  
        return repository.findByUsername(username);  
	}

}
